package com.example.servicefeign.service;

import com.example.servicefeign.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "dmp-meta", fallback = SchedualServiceHelloHystric.class)
public interface SchedualServiceHello {

    @GetMapping(value = "/dmp-meta/dmpmeta")
    public String hello();

    @PostMapping(value = "/dmp-meta/getUser")
    public User getUser(User user);

}
